package com.battcn.platform.service.webmagic.pageprocessor;

import com.battcn.platform.service.utils.UserAgentUtil;

import us.codecraft.webmagic.Page;
import us.codecraft.webmagic.Site;
import us.codecraft.webmagic.processor.PageProcessor;

//
public class IPIsableProcessor implements PageProcessor{
	
	private Site site = Site.me().setTimeOut(6000).setRetryTimes(3)
            .setSleepTime(1000)
            .setCharset("UTF-8")
            .addHeader("Accept-Encoding", "/")
            .setUserAgent(UserAgentUtil.getRandomUserAgent());
	
	@Override
	public void process(Page page) {
		// TODO Auto-generated method stub
		if(page.getStatusCode()!=200){
			
		}
	}

	@Override
	public Site getSite() {
		// TODO Auto-generated method stub
		return site;
	}

}
